package com.project.feign;

import com.project.DTO.AdminAndInsuranceDTO;
import com.project.utils.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "user-service")
public interface OrderClient {

    @RequestMapping("order/updateorderpassbyone")
    ResponseData updateOrderWithSuccessByOne(@RequestBody AdminAndInsuranceDTO adminAndInsuranceDTO);

    @RequestMapping("order/updateorderpassbutwo")
    ResponseData updateOrderWithSuccessByTwo(@RequestBody AdminAndInsuranceDTO adminAndInsuranceDTO);

    @RequestMapping("order/updateordernotpass")
    ResponseData updateOrderWithFailure(@RequestBody AdminAndInsuranceDTO adminAndInsuranceDTO);
}
